TARGET = cph

CC = g++

LIBS = 

CFLAGS = -c -Wall -ansi -pedantic
LFLAGS = -Wall $(LIBS)


# source files                                                                                                                                                                                       
CPP_SOURCES = cph.cpp

#object files                                                                                                                                                                                        
OBJECTS = $(CPP_SOURCES:.cpp=.o)

fast: CC += -O3
fast: $(TARGET)

all: $(TARGET)

debug: CC += -D__DEBUG -g -pg
debug: $(TARGET)

$(TARGET):  $(OBJECTS)
	$(CC) $(LFLAGS) $(OBJECTS) -o $(TARGET)

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.so *.o *~ *.out $(TARGET)
